<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>自制的文字图标</title>
    <style>
        .icon{
            font-family: "Webdings";
            font-size: 48px;
            color: red;
            transition: color .5s;
            cursor: pointer;
            font-style: normal;
        }
        .icon-right::after{
            content: "a";
        }
        .icon-border:after{
            content: "c";
        }
        .icon:hover{
            color: green;
        }
    </style>
</head>
<body>
    <!-- 行内显示的元素，i -->
    <!-- <div class="icon">a</div><div class="icon">a</div> -->
    <i class="icon icon-right"></i>
    <i class="icon icon-border"></i>
</body>
</html>